import request from '@/http/request.js'

export function list(data){
    return request({
        url:'/plate/plateList',
        method:'post',
        data
    })
}

export function add(data){
    return request({
        url:'/plate/increasePlate',
        method:'post',
        data
    })
}

export function detail(plateId){
    return request({
        url:`/api/plate/detail`,
        method:'get',
        params:{plateId}
    })
}

export function edit(data){
    return request({
        url:'/api/plate/editDetail',
        method:'post',
        data
    })
}

export function del(plateId){
    return request({
        url:'/api/plate/deletePlate',
        method:'get',
        params:{plateId}
    })
}